using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class SatisfactionConfiguration: Base.BaseEntityConfiguration<Satisfaction>
    {
        public override void Configure(EntityTypeBuilder<Satisfaction> builder)
        {
            base.Configure(builder);

            builder.ToTable("satisfaction");

            builder.Property(x=>x.StudentId).HasColumnName("student_id").HasColumnOrder(1);
            builder.Property(x=>x.StudentId).HasColumnName("class_id").HasColumnOrder(2);
            builder.Property(x=>x.TeacherId).HasColumnName("teacher_id").HasColumnOrder(3);
            builder.Property(x=>x.Score).HasColumnName("score").HasColumnOrder(4);
            builder.Property(x=>x.Advice).HasColumnName("advice").HasColumnOrder(5);
            builder.Property(x=>x.IsWrite).HasColumnName("is_write").HasColumnOrder(6);
        //     builder.Property(x=>x.TeacherId).HasColumnName("teacher_id").HasColumnOrder(2);
        //     /// <summary>
        // /// 学生id
        // /// </summary>
        // /// <value></value>
        // public Guid StudentId { get; set; }
        // /// <summary>
        // /// 教师id
        // /// </summary>
        // /// <value></value>
        // public Guid TeacherId { get; set; }
        // /// <summary>
        // /// 总分
        // /// </summary>
        // /// <value></value>
        // public int Score { get; set; }
        // /// <summary>
        // /// 建议
        // /// </summary>
        // /// <value></value>
        // public string? Advice { get; set; }
        // /// <summary>
        // /// 是否填写
        // /// </summary>
        // /// <value></value>

        // public bool IsWrite { get; set; }
        }
    }
}